# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-trustme
pkgver=0.9.0
pkgrel=1
pkgdesc="#1 quality TLS certs while you wait, for the discerning tester"
url="https://github.com/python-trio/trustme"
arch="noarch"
license="Apache-2.0 OR MIT"
depends="
	py3-cryptography
	py3-idna
	py3-openssl
	py3-service_identity
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/t/trustme/trustme-$pkgver.tar.gz"
builddir="$srcdir/trustme-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f0d983a4c52374f178c0bf96f758fdb5f132e7f7c4bac187c84fbc8dc82dc36d6c801c340bf8871e872178f7b2ac66d6159b5462d073beec9a13a086f64b58b7  trustme-0.9.0.tar.gz
"
